package com.dabaozhan.modules.wx_app.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dabaozhan.modules.wx_app.dao.BookBillMapper;
import com.dabaozhan.modules.wx_app.entity.BookBillEntity;
import com.dabaozhan.modules.wx_app.entity.BookBillQueryEntity;
import com.dabaozhan.modules.wx_app.service.BookBillService;

@Service("bookBillService")
public class BookBillServiceImpl implements BookBillService{
	
	@Autowired
	private BookBillMapper bookBillMapper;

	@Override
	public int addBookBill(BookBillEntity entity) {
		return bookBillMapper.addBookBill(entity);
	}

	@Override
	public List<BookBillEntity> getBookBillList(BookBillQueryEntity entity) {
		return bookBillMapper.getBookBillList(entity);
	}

	@Override
	public long getBookBillCount(BookBillQueryEntity entity) {
		return bookBillMapper.getBookBillCount(entity);
	}

	@Override
	public List<BookBillEntity> getBookBillListByTime(BookBillQueryEntity entity) {
		return bookBillMapper.getBookBillListByTime(entity);
	}

}
